

package com.hazelcast.internal.util.iterator;

import java.util.Iterator;

/**
 * The iterator that also extends the {@link AutoCloseable} interface.
 * <p>
 * NOTE: It is up to the implementation if {@link #close()} is always required to be called,
 * or only if the iterator hasn't been exhausted.
 *
 * @param <E> see {@link Iterator}.E.
 */
public interface AutoCloseableIterator<E> extends Iterator<E>, AutoCloseable {
}
